<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>优品商城 - 您的购物首选</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
        }
        
        header {
            background-color: #ff6b6b;
            color: white;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: bold;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 1.5rem;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
        }
        
        .search-bar {
            display: flex;
            margin: 1rem 0;
        }
        
        .search-bar input {
            padding: 0.5rem;
            width: 300px;
            border: 1px solid #ddd;
        }
        
        .search-bar button {
            padding: 0.5rem 1rem;
            background-color: #333;
            color: white;
            border: none;
            cursor: pointer;
        }
        
        .banner {
            height: 300px;
            background-image: url('https://via.placeholder.com/1200x300');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-align: center;
        }
        
        .banner-content h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }
        
        .section-title {
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #ff6b6b;
        }
        
        .products {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
        }
        
        .product-card {
            background-color: white;
            border-radius: 5px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
        }
        
        .product-image {
            height: 200px;
            background-color: #eee;
            background-size: cover;
            background-position: center;
        }
        
        .product-info {
            padding: 1rem;
        }
        
        .product-title {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }
        
        .product-price {
            color: #ff6b6b;
            font-weight: bold;
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }
        
        .add-to-cart {
            width: 100%;
            padding: 0.5rem;
            background-color: #ff6b6b;
            color: white;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }
        
        footer {
            background-color: #333;
            color: white;
            padding: 2rem 1rem;
            text-align: center;
            margin-top: 2rem;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            margin-bottom: 1rem;
        }
        
        .footer-links a {
            color: white;
            margin: 0 1rem;
            text-decoration: none;
        }
        
        @media (max-width: 768px) {
            header {
                flex-direction: column;
                text-align: center;
            }
            
            nav ul {
                margin-top: 1rem;
            }
            
            .search-bar {
                width: 100%;
            }
            
            .search-bar input {
                width: 100%;
            }
            
            .products {
                grid-template-columns: 1fr 1fr;
            }
        }
    </style>
</head>
<body>
    <header>
        <div class="logo">优品商城</div>
        <nav>
            <ul>
                <li><a href="#">首页</a></li>
                <li><a href="#">商品分类</a></li>
                <li><a href="#">新品上市</a></li>
                <li><a href="#">促销活动</a></li>
                <li><a href="#">我的账户</a></li>
                <li><a href="#">购物车</a></li>
            </ul>
        </nav>
        <div class="search-bar">
            <input type="text" placeholder="搜索商品...">
            <button>搜索</button>
        </div>
    </header>
    
    <div class="banner">
        <div class="banner-content">
            <h1>夏季大促销</h1>
            <p>全场商品5折起，限时抢购</p>
        </div>
    </div>
    
    <div class="container">
        <h2 class="section-title">热门商品</h2>
        <div class="products">
            <div class="product-card">
                <div class="product-image" style="background-image: url('https://via.placeholder.com/300x200');"></div>
                <div class="product-info">
                    <h3 class="product-title">无线蓝牙耳机</h3>
                    <div class="product-price">¥199</div>
                    <button class="add-to-cart">加入购物车</button>
                </div>
            </div>
            
            <div class="product-card">
                <div class="product-image" style="background-image: url('https://via.placeholder.com/300x200');"></div>
                <div class="product-info">
                    <h3 class="product-title">智能手表</h3>
                    <div class="product-price">¥599</div>
                    <button class="add-to-cart">加入购物车</button>
                </div>
            </div>
            
            <div class="product-card">
                <div class="product-image" style="background-image: url('https://via.placeholder.com/300x200');"></div>
                <div class="product-info">
                    <h3 class="product-title">便携式充电宝</h3>
                    <div class="product-price">¥129</div>
                    <button class="add-to-cart">加入购物车</button>
                </div>
            </div>
            
            <div class="product-card">
                <div class="product-image" style="background-image: url('https://via.placeholder.com/300x200');"></div>
                <div class="product-info">
                    <h3 class="product-title">高清数码相机</h3>
                    <div class="product-price">¥2,499</div>
                    <button class="add-to-cart">加入购物车</button>
                </div>
            </div>
        </div>
        
        <h2 class="section-title">新品上市</h2>
        <div class="products">
            <div class="product-card">
                <div class="product-image" style="background-image: url('https://via.placeholder.com/300x200');"></div>
                <div class="product-info">
                    <h3 class="product-title">智能扫地机器人</h3>
                    <div class="product-price">¥1,299</div>
                    <button class="add-to-cart">加入购物车</button>
                </div>
            </div>
            
            <div class="product-card">
                <div class="product-image" style="background-image: url('https://via.placeholder.com/300x200');"></div>
                <div class="product-info">
                    <h3 class="product-title">4K超清电视</h3>
                    <div class="product-price">¥3,999</div>
                    <button class="add-to-cart">加入购物车</button>
                </div>
            </div>
            
            <div class="product-card">
                <div class="product-image" style="background-image: url('https://via.placeholder.com/300x200');"></div>
                <div class="product-info">
                    <h3 class="product-title">游戏笔记本电脑</h3>
                    <div class="product-price">¥7,999</div>
                    <button class="add-to-cart">加入购物车</button>
                </div>
            </div>
            
            <div class="product-card">
                <div class="product-image" style="background-image: url('https://via.placeholder.com/300x200');"></div>
                <div class="product-info">
                    <h3 class="product-title">无线机械键盘</h3>
                    <div class="product-price">¥399</div>
                    <button class="add-to-cart">加入购物车</button>
                </div>
            </div>
        </div>
    </div>
    
    <footer>
        <div class="footer-links">
            <a href="#">关于我们</a>
            <a href="#">联系我们</a>
            <a href="#">隐私政策</a>
            <a href="#">配送信息</a>
            <a href="#">退换政策</a>
        </div>
        <p>© 2023 优品商城 版权所有</p>
    </footer>
</body>
</html>